﻿using System;

namespace ShenLan.Common
{
    public class GuidHandler
    {
        /// <summary>
        /// 判断是否为Guid
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static bool IsGuid(string id)
        {
            try
            {
                Guid.Parse(id);
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}